﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KOPLibrary.Controls;

namespace KOPLibrary.Forms
{
    public partial class BarcodeSettingsForm : Form
    {
        public BarcodeSettingsForm()
        {
            InitializeComponent();
        }
        

        private void BarcodeSettingsForm_Load(object sender, EventArgs e)
        {

        }

        public BarcodeParameters Settings
        {
            get
            {
                return ctlBarcodeParametersControl.Settings;
            }
            set
            {
                ctlBarcodeParametersControl.Settings = value;
            }
        }

        public bool Execute()
        {
            return ShowDialog() == System.Windows.Forms.DialogResult.OK;
        }

        private void ctlOK_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.OK;
        }
    }
}
